package com.wzy.authority.configuration;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.security.crypto.password.PasswordEncoder;


/**
 * @program: authorityManagement
 * @description: 密码加密配置
 * @author: 1
 * @create: 2020-03-13 19:23
 **/
@Configuration
public class PasswordEncoderConfiguration {


    /**
     * 密码加密配置
     * @return
     */
    @Bean
    public PasswordEncoder passwordEncoder(){
        return new BCryptPasswordEncoder();
    }


}
